package com.gao.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gao.common.utils.PageUtils;
import com.gao.common.utils.Query;

import com.gao.dao.ShebeiDao;
import com.gao.entity.ShebeiEntity;
import com.gao.service.ShebeiService;


@Service("shebeiService")
public class ShebeiServiceImpl extends ServiceImpl<ShebeiDao, ShebeiEntity> implements ShebeiService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ShebeiEntity> page = this.page(
                new Query<ShebeiEntity>().getPage(params),
                new QueryWrapper<ShebeiEntity>()
        );

        return new PageUtils(page);
    }

}